import request from "@/utils/request";
import { AxiosPromise } from "axios";
import { AllocationForm, AllocationQuery } from "@/api/collect/allocation/types";
import { BudgetSubjectVO } from "@/api/budget/budgetSubject/types";

/**
 * 查询数据分配（费用类数据）列表
 * @param query
 * @returns
 */

export const listAllocation = (query?: AllocationQuery) => {
  return request({
    url: "/collect/allocation/listPage",
    method: "post",
    data: query
  });
};



/**
 * 预算科目列表下拉
 */
export const getAllSubjectList = (): AxiosPromise<BudgetSubjectVO[]> => {
  return request({
    url: "/budget/subject/getAllSubjectList",
    method: "get"
  });
};


